﻿<%@ Page Language="C#" MasterPageFile="~/Manager/Main.master" AutoEventWireup="true" CodeFile="MaterialOrderMy.aspx.cs" Inherits="Manager_MaterialBidMyList" Title="原料竞价"  %>

<%@ Register Src="../WebControl/PageOn.ascx" TagName="PageOn" TagPrefix="uc1" %>
<asp:Content ID="ContentHead" ContentPlaceHolderID="HeadMain" runat="Server">
<style type="text/css">
     #Header
     {  
        font-size:16px;     
        margin-left:5px; 
        padding-left:1px; 
        width:98%;
        height:50px; 
        border-style:solid; 
        border-width:0px 0px 1px 0px; 
        border-color:#000000;   
     }
    #Header li
    {
        vertical-align:middle;
        float:left; 
        margin-top:20px;     
        font-weight:bold;  
        text-align:center;   
        
    }
    .ulContent
    {   
        margin-left:5px; 
        padding-left:1px; 
        width:98%;
        height:30px; 
        border-style:dashed ; 
        border-width:0px 0px 1px 0px; 
        border-color:#000000;  
        
        text-overflow:ellipsis; 
    }
    .ulContent li
    {
        float:left; 
        margin-top:2px;      
        text-align:left; 
        height:30px; 
        
        overflow:hidden;
        white-space:nowrap;
        text-overflow:ellipsis;
        
    }
 </style>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 
<div class="box">
  <div id="divTabs" class="tagMenu">
    <h2>竞价列表 <a href="MaterialOrderAdd.aspx" target="_self">增加</a> </h2>
    <ul class="menu">
        <li class="current" >我的竞价</li><li onclick="window.location.href='MaterialBidListOther.aspx'">其它竞价</li></ul>
  </div>
  <div  style="margin-left:1px; width:100%; " >
    <ul id="Header" >
        <li style="width:30px;" >NO.</li>
        <li style="width:150px;">名称</li>
        <li style="width:150px;">规格成分</li>
        <li style="width:80px;">结束日期</li>
        <li style="width:80px;">交期</li>
        <li style="width:100px;">备注</li>
        <li style="width:100px;">操作</li>
    </ul>
      <asp:Repeater ID="rptList" runat="server">
        <ItemTemplate>
            <ul class="ulContent">
                <li style="width:30px;  "><%# Container.ItemIndex +1 %></li> 
                <li style="width:150px; "><%# Eval("name") %></li>
                <li style="width:150px;"><%# Eval("spec") %></li>
                <li style="width:80px;"><%# DateTime.Parse(Eval("endDate").ToString()).ToShortDateString() %></li>
                <li style="width:80px;"><%# DateTime.Parse(Eval("deliveryDate").ToString()).ToShortDateString() %></li>
                <li style="width:100px;"><%# Eval("comment") %></li>
                <li style="width:100px;">
                    <a href='MaterialOrderAdd.aspx?matid=<%# Eval("matId") %>' target="_self">编辑</a>
                    <asp:LinkButton ID="btnDelete"  CommandArgument='<%#DataBinder.Eval(Container.DataItem, "matId")%>' runat="server" CommandName="Delete" OnClick="Delete_Click" OnClientClick="return confirm('真的要删除吗？');">删除</asp:LinkButton>
                    <a href='MaterialOrderBidView.aspx?matid=<%# Eval("matId") %>' target="_self" >竞价(<%# Eval("bidCount") %>)</a>
                </li>
            </ul>
        </ItemTemplate>
      </asp:Repeater>
  </div> 
    <uc1:PageOn ID="PageOn1" runat="server" OnPageChanged="PageOn1_OnPangeChanged" />
    <input type="button" onclick="window.location.href='MaterialOrderAdd.aspx'" value="增加" /> 
</div>

</asp:Content>

